<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс AExtXML</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс AExtXML</h1><!-- doxytag: class="AExtXML" --><!-- doxytag: inherits="AExtension" -->Класс расширения Ананас <a class="el" href="classAExtXML.html" title="Класс расширения Ананас AExtXML предназначен для...">AExtXML</a> предназначен для работы с XML файлами.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="aextxml_8h-source.html">aextxml.h</a>&gt;</code>
<p>
<div class="dynheader">
Граф наследования:AExtXML:</div>
<div class="dynsection">

<p><center><img src="classAExtXML.png" usemap="#AExtXML_map" border="0" alt=""></center>
<map name="AExtXML_map">
</map>
</div>

<p>
<a href="classAExtXML-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые слоты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#de492a0db4301c99c75015d471d96a36">read</a> (const QString &amp;fname)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#aae63a0d6856833865c5920cbe597077">write</a> (const QString &amp;fname)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#43226a78267b2e69cf381805171773da">createNew</a> (const QString &amp;rootnodename)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#d08e6146149cc065a3cfdb9f2ab54ba2">isRoot</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1fa00a85cc6007cfed3146be6e070727"></a><!-- doxytag: member="AExtXML::parent" ref="1fa00a85cc6007cfed3146be6e070727" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>parent</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d33457dbee12e4e4897fbaa6a1f587fd"></a><!-- doxytag: member="AExtXML::newChild" ref="d33457dbee12e4e4897fbaa6a1f587fd" args="(const QString &amp;childname)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>newChild</b> (const QString &amp;childname)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1a74a384d44fd4fbf13b06076b3b67d"></a><!-- doxytag: member="AExtXML::nodeName" ref="b1a74a384d44fd4fbf13b06076b3b67d" args="()" -->
QString&nbsp;</td><td class="memItemRight" valign="bottom"><b>nodeName</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#a55924788adbd1c43021982f195c9e54">setText</a> (const QString &amp;text)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#0d200c1d7bb5968a1dd3653c48ee1869">text</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#127c06257df0eb7ec712ffd0118058a2">setAttr</a> (const QString &amp;name, const QString &amp;value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#ad002521d0846a33fe7642ff4461eecb">attr</a> (const QString &amp;name) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ffd79efcfae6eb8f3d1c63c3180d6a22"></a><!-- doxytag: member="AExtXML::removeAttr" ref="ffd79efcfae6eb8f3d1c63c3180d6a22" args="(const QString &amp;name)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>removeAttr</b> (const QString &amp;name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="47a91a54e4a3816d99dd18efbf74957b"></a><!-- doxytag: member="AExtXML::firstChild" ref="47a91a54e4a3816d99dd18efbf74957b" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>firstChild</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="647e8f7252cbe0e40406afea2a3002d0"></a><!-- doxytag: member="AExtXML::lastChild" ref="647e8f7252cbe0e40406afea2a3002d0" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>lastChild</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58cbc2f54eff2f1907297311bc00c8ac"></a><!-- doxytag: member="AExtXML::next" ref="58cbc2f54eff2f1907297311bc00c8ac" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>next</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ff67745d8c1ebf02d0d246e67a708b4"></a><!-- doxytag: member="AExtXML::prev" ref="5ff67745d8c1ebf02d0d246e67a708b4" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>prev</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96909c5a03125caff50b96bc2e99dca3"></a><!-- doxytag: member="AExtXML::childExists" ref="96909c5a03125caff50b96bc2e99dca3" args="()" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>childExists</b> ()</td></tr>

<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#75b12a55dff0f8a4707840e406bec55c">AExtXML</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAExtXML.html#0d6587586d11a326282d1adcc028a2ac">~AExtXML</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Класс расширения Ананас <a class="el" href="classAExtXML.html" title="Класс расширения Ананас AExtXML предназначен для...">AExtXML</a> предназначен для работы с XML файлами. <hr><h2>Конструктор(ы)</h2>
<a class="anchor" name="75b12a55dff0f8a4707840e406bec55c"></a><!-- doxytag: member="AExtXML::AExtXML" ref="75b12a55dff0f8a4707840e406bec55c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AExtXML::AExtXML           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Создает объект. 
</div>
</div><p>
<a class="anchor" name="0d6587586d11a326282d1adcc028a2ac"></a><!-- doxytag: member="AExtXML::~AExtXML" ref="0d6587586d11a326282d1adcc028a2ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AExtXML::~AExtXML           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Уничтожает объект. 
</div>
</div><p>
<hr><h2>Методы</h2>
<a class="anchor" name="de492a0db4301c99c75015d471d96a36"></a><!-- doxytag: member="AExtXML::read" ref="de492a0db4301c99c75015d471d96a36" args="(const QString &amp;fname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AExtXML::read           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fname</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Читает файл XML. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fname</em>&nbsp;</td><td>(in) - имя файла XML. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true в случае успеха. </dd></dl>

</div>
</div><p>
<a class="anchor" name="aae63a0d6856833865c5920cbe597077"></a><!-- doxytag: member="AExtXML::write" ref="aae63a0d6856833865c5920cbe597077" args="(const QString &amp;fname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AExtXML::write           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>fname</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Записывает файл XML. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fname</em>&nbsp;</td><td>(in) - имя файла XML. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>Код ошибки. </dd></dl>

</div>
</div><p>
<a class="anchor" name="43226a78267b2e69cf381805171773da"></a><!-- doxytag: member="AExtXML::createNew" ref="43226a78267b2e69cf381805171773da" args="(const QString &amp;rootnodename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AExtXML::createNew           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>rootnodename</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Создает новый XML документ. Старое содержимое документа уничтожается. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rootnodename</em>&nbsp;</td><td>(in) - имя корневого узла документа XML. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>ничего. </dd></dl>

</div>
</div><p>
<a class="anchor" name="d08e6146149cc065a3cfdb9f2ab54ba2"></a><!-- doxytag: member="AExtXML::isRoot" ref="d08e6146149cc065a3cfdb9f2ab54ba2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AExtXML::isRoot           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Проверяет, является ли текущий узел корневым. <dl class="return" compact><dt><b>Возвращает:</b></dt><dd>true - если текущий узел корневой. </dd></dl>

</div>
</div><p>
<a class="anchor" name="a55924788adbd1c43021982f195c9e54"></a><!-- doxytag: member="AExtXML::setText" ref="a55924788adbd1c43021982f195c9e54" args="(const QString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AExtXML::setText           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Устанавливает текст текущего узла. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>(in) - Значение нового текста. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>ничего. </dd></dl>

</div>
</div><p>
<a class="anchor" name="0d200c1d7bb5968a1dd3653c48ee1869"></a><!-- doxytag: member="AExtXML::text" ref="0d200c1d7bb5968a1dd3653c48ee1869" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString AExtXML::text           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает текст текущего узла. <dl class="return" compact><dt><b>Возвращает:</b></dt><dd>Строка. </dd></dl>

</div>
</div><p>
<a class="anchor" name="127c06257df0eb7ec712ffd0118058a2"></a><!-- doxytag: member="AExtXML::setAttr" ref="127c06257df0eb7ec712ffd0118058a2" args="(const QString &amp;name, const QString &amp;value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool AExtXML::setAttr           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Устанавливает значение атрибута текущего узла. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>(in) - иям атрибута. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>(in) - новое значение. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>ничего. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ad002521d0846a33fe7642ff4461eecb"></a><!-- doxytag: member="AExtXML::attr" ref="ad002521d0846a33fe7642ff4461eecb" args="(const QString &amp;name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString AExtXML::attr           </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Возвращает значение атрибута текущего узла. <dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>(in) - иям атрибута. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>значение атрибута. </dd></dl>

</div>
</div><p>
<hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="aextxml_8h-source.html">aextxml.h</a><li>aextxml.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
